﻿namespace AiBLSmartEdu.Module.SmartStockSense.API.Configurations;

#nullable disable

/// <summary>
/// 配置
/// </summary>
public class SmartStockSenseSettings
{
    public const string Key = nameof(SmartStockSenseSettings);
    public string[] Licences { get; set; }
    public ApiEndpoints ApiEndpoints { get; set; }
    public WorkingHours WorkingHours { get; set; }
    public int ApiRequestIntervalInMinutes { get; set; }
}

public class ApiEndpoints
{
    public string StockList { get; set; }
    public string NewStockCalendar { get; set; }
    public string RealTimeTradingData { get; set; }
    public string FiveLevelMarket { get; set; }
    public string DailyTrades { get; set; }
    public string LargeOrderTrades { get; set; }
    public string LatestMinuteTrading { get; set; }
    public string LatestKDJ { get; set; }
    public string LatestMACD { get; set; }
    public string LatestMA { get; set; }
    public string HistoricalMinuteTrading { get; set; }
    public string HistoricalKDJ { get; set; }
    public string HistoricalMACD { get; set; }
    public string HistoricalMA { get; set; }
    public string HistoricalBOLL { get; set; }
}

public class WorkingHours
{
    public TimeSpan MorningStart { get; set; }
    public TimeSpan MorningEnd { get; set; }
    public TimeSpan AfternoonStart { get; set; }
    public TimeSpan AfternoonEnd { get; set; }
}